﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">网站设置</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">订单列表</a></span>
            <div class="z-f-r"><span class="user-t"><a href="{$site_url}"  target="_blank">网站首页</a></span><span class="user-info"></span><a href="index.php?app=default&act=quit" onClick="return confirm('确认退出管理系统吗？');"   >退出管理</a></div>
        </div>
        <div class="top-menu">
        	<ul>
            	<li class="current"><a href="#">订单列表</a></li>
				</ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">


<style type="text/css">
.search_box {
padding:10px;
vertical-align:middle;
}
.search_box .l {
float:left;
vertical-align:middle;
}
.search_box .r {
float:right;
}
</style>
                                   
                                   
                                   
<form  method="post" action="<!--{url('admin/?app=order&act=ticketz')}-->" >
<div class="search_box">
<div class="l"><img  src="{$web_view_dir}style/images/it_nav.gif" align="middle">
请输入您要搜索的团购券或用户名：
<input name="keyword" value="{$keyword}" id="keyword" type="text" /> 
<select name="type">
<option value="1" <!--{if ($searchtype==1)}-->selected<!--{/if}-->>团购券编号</option> 
<option value="2" <!--{if ($searchtype==2)}-->selected<!--{/if}-->>用户名</option> 
</select>&nbsp;， 
过期时间<input name="time" value="" id="keyword" type="text" onfocus="HS_setDate(this)" /> 
<select name="used"> 
<option value="false" <!--{if ($used=='false')}-->selected<!--{/if}-->>使用状态不限</option> 
<option value="0" <!--{if ($used=='0')}-->selected<!--{/if}-->>已使用</option> 
<option value="1" <!--{if ($used=='1')}-->selected<!--{/if}-->>未使用</option> 
<option value="2" <!--{if ($used=='2')}-->selected<!--{/if}-->>已过期</option> 
</select> 
<input name="bottom" type="submit" id="bottom" value="搜索" class="buton"/>
</div>

<div class="r">

</div>

</div>
</form>

<div class="clear"></div>	
	
	
    <table  class="data" >
        <thead>
	
<th>产品名称</th>
<th>购买人</th> 
<th>团购券号</th> 
<th>过期时间</th> 
<th>状态</th> 
<th>管理</th>	
	
		
        </thead>
	    <tbody>
		
<!--{if (empty($lw_data)) }--> 
<tr>
<td colspan="6">暂时没有团购券哦。<BR>
团购券是在商品达到或者超过最低团购人数时，由系统自动生成！</td>
</tr>
<!--{/if}-->


<!--{if (!empty($lw_data)) }-->
<!--{foreach($lw_data as $_key => $_value )}-->

<tr > 
<td >{$_value.name}</td>
<td >{$_value.user_name}</td>
<td >{$_value.number}</td> 
<td >{$_value.perioddate|dateymdgis}</td> 
<td ><!--{if ($_value.status==1)}-->未使用<!--{elseif ($_value.status==0)}--><font color=blue>已使用</font><!--{else}--><font color=red>已过期</font><!--{/if}--></td>
<td align="center" >
<!--{if ($_value.status!=1)}-->
<a href="?app=order&act=deleteticket&ticketid={$_value.ticketid}"  onClick="return confirm('您确认要删除该消费券吗？请谨慎使用该功能！');" >删除</a>
<!--{/if}-->
<!--{if ($_value.status==1)}--><a href="?app=order&act=warnofticket&id={$_value.ticketid}">Email到期提醒</a><!--{/if}--></td> 
</tr> 


 <!--{/foreach}--> 
<!--{/if}--> 


<style type="text/css">

.p_bar {
margin-top:5px;
}
.p_info {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}
.p_curpage {
border:1px solid #CCCCCC;
color:#FF0000;
font-weight:bold;
margin:0 2px;
padding:3px 5px;
text-align:center;
}

.p_num  {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}
.p_redirect {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}

a {
color:#003366;
text-decoration:none;
}


</style>

<tr>
	<td colspan="6">
    <div class="p_bar">
    <span class="p_info">Total:&nbsp;<b>{$lw_page.total}</b>&nbsp;&nbsp;共{$lw_page.curr.num}/{$lw_page.totalpage}页</span>
    <a class="p_num" href="{$lw_page.head}">首页</a>
    <a class="p_num" href="{$lw_page.up}">&lt;&lt;</a>
    <a class="p_num" href="{$lw_page.up}">上一页</a>
    <span class="p_curpage">{$lw_page.curr.num}</span>
    <a  class="p_num" href="{$lw_page.down}">下一页</a>
    <a  class="p_num" href="{$lw_page.down}">&gt;&gt;</a>
    <a  class="p_num" href="{$lw_page.foot}">末页</a>    
    
    </div>
    </td>
</tr>



	    </tbody>
    </table>
	

	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span ></span> </div>
    </div>
</div>
<!--{inc(footer.view.html)}-->